﻿#region License

/*
 © 2012 Alex Kazaev
 * FolderDrive project [http://folderdrive.codeplex.com/]
 * Licensed under Ms-PL license [http://www.opensource.org/licenses/MS-PL]
 */

#endregion License

using System.Configuration;

namespace FolderDrive.Configuration
{
  /// <summary>
  /// Represents the configuration element for storing the mapping items
  /// </summary>
  internal class FolderDriveConfigurationElement : ConfigurationElement
  {
    /// <summary>
    /// Gets or sets the drive letter.
    /// </summary>
    [ConfigurationProperty("driveLetter", IsRequired = true)]
    public string DriveLetter
    {
      get { return (string)base["driveLetter"]; }
      set { base["driveLetter"] = value; }
    }

    /// <summary>
    /// Gets or sets the associated path.
    /// </summary>
    [ConfigurationProperty("path", IsRequired = true)]
    public string Path
    {
      get { return (string)base["path"]; }
      set { base["path"] = value; }
    }

    /// <summary>
    /// Determines if the mapping is permanent
    /// </summary>
    [ConfigurationProperty("permanent", IsRequired = true)]
    public bool IsPermanent
    {
        get { return (bool)base["permanent"]; }
        set { base["permanent"] = value; }
    }
  }
}